class Notify < ActionMailer::Base
  default from: 'us.kamor@gmail.com'

  def success_apoint(name, apoint)
    @name = name
    @apoint = apoint
    mail(to: Rails.env.production? ? 'hollylyzhao@gmail.com' : 'wppurking@gmail.com', subject: "成功预定到 #{@name} 老师的练车课程")
  end
end
